package com.bawei.park2211a.rov

import androidx.lifecycle.MutableLiveData
import com.bawei.base.bean.CarDetailsEntity
import com.bawei.base.mvvm.BaseViewModel
import com.bawei.base.net.ApiService
import dagger.hilt.android.lifecycle.HiltViewModel
import javax.inject.Inject

@HiltViewModel
class ROVViewModel @Inject constructor(var apiService: ApiService):BaseViewModel(){
    var carDetailSuccess=MutableLiveData<CarDetailsEntity>()
    fun carInfoId(	licensePlate:String){
        httpRequest({apiService.carInfoId(licensePlate)},{carDetailSuccess.postValue(it)})
    }
}